Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean: delete Dictionary::getProperties which is unused since the first commit of GD #1982

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/dict/aard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ class AardDictionary: public BtreeIndexing::BtreeDictionary

~AardDictionary();

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/bgl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ class BglDictionary: public BtreeIndexing::BtreeDictionary

BglDictionary( string const & id, string const & indexFile, string const & dictionaryFile );

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/dictdfiles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ class DictdDictionary: public BtreeIndexing::BtreeDictionary

~DictdDictionary();

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
11 changes: 0 additions & 11 deletions src/dict/dictionary.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ using std::string;
using gd::wstring;
using std::map;

enum Property {
Author,
Copyright,
Description,
Email
};

DEF_EX( Ex, "Dictionary error", std::exception )
DEF_EX( exIndexOutOfRange, "The supplied index is out of range", Ex )
DEF_EX( exSliceOutOfRange, "The requested data slice is out of range", Ex )
Expand Down Expand Up @@ -380,10 +373,6 @@ public:
metadata_enable_fts = _enable_FTS;
}

/// Returns all the available properties, like the author's name, copyright,
/// description etc. All strings are in utf8.
virtual map< Property, string > getProperties() noexcept = 0;

/// Returns the features the dictionary possess. See the Feature enum for
/// their list.
virtual Features getFeatures() const noexcept
Expand Down
4 changes: 0 additions & 4 deletions src/dict/dictserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,6 @@ class DictServerDictionary: public Dictionary::Class
disconnectFromServer( socket );
}

map< Property, string > getProperties() noexcept override
{
return {};
}

unsigned long getArticleCount() noexcept override
{
Expand Down
5 changes: 0 additions & 5 deletions src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ class DslDictionary: public BtreeIndexing::BtreeDictionary
~DslDictionary();


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/epwing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ class EpwingDictionary: public BtreeIndexing::BtreeDictionary

~EpwingDictionary();


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/forvo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ class ForvoDictionary: public Dictionary::Class
}


map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/gls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ class GlsDictionary: public BtreeIndexing::BtreeDictionary

~GlsDictionary();

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/hunspell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ class HunspellDictionary: public Dictionary::Class
dictionaryName = name_;
}


map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/lingualibre.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ WHERE {
}
}


map< Property, string > getProperties() noexcept override
{
return {};
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/lsa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@ class LsaDictionary: public BtreeIndexing::BtreeDictionary

string getName() noexcept override;

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.soundsCount;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/mdx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ class MdxDictionary: public BtreeIndexing::BtreeDictionary

void deferredInit() override;


map< Dictionary::Property, string > getProperties() noexcept override
{
return {};
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/mediawiki.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ class MediaWikiDictionary: public Dictionary::Class
return name;
}

map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/programs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ class ProgramsDictionary: public Dictionary::Class
return prg.name.toUtf8().data();
}

map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/sdict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ class SdictDictionary: public BtreeIndexing::BtreeDictionary
~SdictDictionary();


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/slob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,6 @@ class SlobDictionary: public BtreeIndexing::BtreeDictionary

~SlobDictionary();


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/sounddir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ class SoundDirDictionary: public BtreeIndexing::BtreeDictionary
vector< string > const & dictionaryFiles,
QString const & iconFilename_ );


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.soundsCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/stardict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ class StardictDictionary: public BtreeIndexing::BtreeDictionary

~StardictDictionary();

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.wordCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/transliteration/transliteration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ string BaseTransliterationDictionary::getName() noexcept
return name;
}

map< Dictionary::Property, string > BaseTransliterationDictionary::getProperties() noexcept
{
return map< Dictionary::Property, string >();
}

unsigned long BaseTransliterationDictionary::getArticleCount() noexcept
{
return 0;
Expand Down
2 changes: 0 additions & 2 deletions src/dict/transliteration/transliteration.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public:

virtual string getName() noexcept;

virtual map< Dictionary::Property, string > getProperties() noexcept;

virtual unsigned long getArticleCount() noexcept;

virtual unsigned long getWordCount() noexcept;
Expand Down
4 changes: 0 additions & 4 deletions src/dict/voiceengines.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ class VoiceEnginesDictionary: public Dictionary::Class
return voiceEngine.name.toUtf8().data();
}

map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
Expand Down
6 changes: 0 additions & 6 deletions src/dict/website.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ class WebSiteDictionary: public Dictionary::Class
dictionaryDescription = urlTemplate_;
}


map< Property, string > getProperties() noexcept override
{
return map< Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return 0;
Expand Down
6 changes: 0 additions & 6 deletions src/dict/xdxf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ class XdxfDictionary: public BtreeIndexing::BtreeDictionary

~XdxfDictionary();


map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
5 changes: 0 additions & 5 deletions src/dict/zim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ class ZimDictionary: public BtreeIndexing::BtreeDictionary
~ZimDictionary() = default;


map< Dictionary::Property, string > getProperties() noexcept override
{
return {};
}

unsigned long getArticleCount() noexcept override
{
return idxHeader.articleCount;
Expand Down
4 changes: 0 additions & 4 deletions src/dict/zipsounds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ class ZipSoundsDictionary: public BtreeIndexing::BtreeDictionary

string getName() noexcept override;

map< Dictionary::Property, string > getProperties() noexcept override
{
return map< Dictionary::Property, string >();
}

unsigned long getArticleCount() noexcept override
{
Expand Down
Loading