mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
clean: delete Dictionary::getProperties which is unused since 2009
This commit is contained in:
parent
3c5b76f77a
commit
f446ad358f
|
@ -216,11 +216,6 @@ public:
|
||||||
|
|
||||||
~AardDictionary();
|
~AardDictionary();
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -173,11 +173,6 @@ public:
|
||||||
|
|
||||||
BglDictionary( string const & id, string const & indexFile, string const & dictionaryFile );
|
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
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -91,11 +91,6 @@ public:
|
||||||
|
|
||||||
~DictdDictionary();
|
~DictdDictionary();
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -30,13 +30,6 @@ using std::string;
|
||||||
using gd::wstring;
|
using gd::wstring;
|
||||||
using std::map;
|
using std::map;
|
||||||
|
|
||||||
enum Property {
|
|
||||||
Author,
|
|
||||||
Copyright,
|
|
||||||
Description,
|
|
||||||
Email
|
|
||||||
};
|
|
||||||
|
|
||||||
DEF_EX( Ex, "Dictionary error", std::exception )
|
DEF_EX( Ex, "Dictionary error", std::exception )
|
||||||
DEF_EX( exIndexOutOfRange, "The supplied index is out of range", Ex )
|
DEF_EX( exIndexOutOfRange, "The supplied index is out of range", Ex )
|
||||||
DEF_EX( exSliceOutOfRange, "The requested data slice is out of range", Ex )
|
DEF_EX( exSliceOutOfRange, "The requested data slice is out of range", Ex )
|
||||||
|
@ -380,10 +373,6 @@ public:
|
||||||
metadata_enable_fts = _enable_FTS;
|
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
|
/// Returns the features the dictionary possess. See the Feature enum for
|
||||||
/// their list.
|
/// their list.
|
||||||
virtual Features getFeatures() const noexcept
|
virtual Features getFeatures() const noexcept
|
||||||
|
|
|
@ -303,10 +303,6 @@ public:
|
||||||
disconnectFromServer( socket );
|
disconnectFromServer( socket );
|
||||||
}
|
}
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
|
|
|
@ -156,11 +156,6 @@ public:
|
||||||
~DslDictionary();
|
~DslDictionary();
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -87,12 +87,6 @@ public:
|
||||||
|
|
||||||
~EpwingDictionary();
|
~EpwingDictionary();
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -38,11 +38,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -349,11 +349,6 @@ public:
|
||||||
|
|
||||||
~GlsDictionary();
|
~GlsDictionary();
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -55,12 +55,6 @@ public:
|
||||||
dictionaryName = name_;
|
dictionaryName = name_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -165,12 +165,6 @@ WHERE {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -159,11 +159,6 @@ public:
|
||||||
|
|
||||||
string getName() noexcept override;
|
string getName() noexcept override;
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.soundsCount;
|
return idxHeader.soundsCount;
|
||||||
|
|
|
@ -212,12 +212,6 @@ public:
|
||||||
|
|
||||||
void deferredInit() override;
|
void deferredInit() override;
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -56,11 +56,6 @@ public:
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -36,11 +36,6 @@ public:
|
||||||
return prg.name.toUtf8().data();
|
return prg.name.toUtf8().data();
|
||||||
}
|
}
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -113,11 +113,6 @@ public:
|
||||||
~SdictDictionary();
|
~SdictDictionary();
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -610,12 +610,6 @@ public:
|
||||||
|
|
||||||
~SlobDictionary();
|
~SlobDictionary();
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -75,12 +75,6 @@ public:
|
||||||
vector< string > const & dictionaryFiles,
|
vector< string > const & dictionaryFiles,
|
||||||
QString const & iconFilename_ );
|
QString const & iconFilename_ );
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.soundsCount;
|
return idxHeader.soundsCount;
|
||||||
|
|
|
@ -134,11 +134,6 @@ public:
|
||||||
|
|
||||||
~StardictDictionary();
|
~StardictDictionary();
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.wordCount;
|
return idxHeader.wordCount;
|
||||||
|
|
|
@ -26,11 +26,6 @@ string BaseTransliterationDictionary::getName() noexcept
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
map< Dictionary::Property, string > BaseTransliterationDictionary::getProperties() noexcept
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long BaseTransliterationDictionary::getArticleCount() noexcept
|
unsigned long BaseTransliterationDictionary::getArticleCount() noexcept
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -28,8 +28,6 @@ public:
|
||||||
|
|
||||||
virtual string getName() noexcept;
|
virtual string getName() noexcept;
|
||||||
|
|
||||||
virtual map< Dictionary::Property, string > getProperties() noexcept;
|
|
||||||
|
|
||||||
virtual unsigned long getArticleCount() noexcept;
|
virtual unsigned long getArticleCount() noexcept;
|
||||||
|
|
||||||
virtual unsigned long getWordCount() noexcept;
|
virtual unsigned long getWordCount() noexcept;
|
||||||
|
|
|
@ -47,10 +47,6 @@ public:
|
||||||
return voiceEngine.name.toUtf8().data();
|
return voiceEngine.name.toUtf8().data();
|
||||||
}
|
}
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,12 +52,6 @@ public:
|
||||||
dictionaryDescription = urlTemplate_;
|
dictionaryDescription = urlTemplate_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
map< Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -140,12 +140,6 @@ public:
|
||||||
|
|
||||||
~XdxfDictionary();
|
~XdxfDictionary();
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -161,11 +161,6 @@ public:
|
||||||
~ZimDictionary() = default;
|
~ZimDictionary() = default;
|
||||||
|
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
return idxHeader.articleCount;
|
return idxHeader.articleCount;
|
||||||
|
|
|
@ -107,10 +107,6 @@ public:
|
||||||
|
|
||||||
string getName() noexcept override;
|
string getName() noexcept override;
|
||||||
|
|
||||||
map< Dictionary::Property, string > getProperties() noexcept override
|
|
||||||
{
|
|
||||||
return map< Dictionary::Property, string >();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long getArticleCount() noexcept override
|
unsigned long getArticleCount() noexcept override
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue