From b338e29fd3eaf700f8c8360aa0310048ba941d54 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:12:46 +0200 Subject: 3.19 --- file_hierarchy.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'file_hierarchy.h') diff --git a/file_hierarchy.h b/file_hierarchy.h index 75db798d..1b4f244b 100644 --- a/file_hierarchy.h +++ b/file_hierarchy.h @@ -8,7 +8,6 @@ #define FILEHIERARCHY_H_INCLUDED #include "shared/zstring.h" -#include "shared/system_constants.h" #include #include #include @@ -130,11 +129,6 @@ struct DirContainer }; -//------------------------------------------------------------------ -//save/load full directory information -const Zstring& getSyncDBFilename(); //get short filename of database file -const Zstring SYNC_DB_FILE_ENDING = Zstr("ffs_db"); - //------------------------------------------------------------------ /* class hierarchy: @@ -195,7 +189,7 @@ public: protected: //constructor used by DirMapping HierarchyObject(const HierarchyObject& parent, const Zstring& shortName) : - relNamePf( parent.getRelativeNamePf() + shortName + common::FILE_NAME_SEPARATOR), + relNamePf( parent.getRelativeNamePf() + shortName + FILE_NAME_SEPARATOR), baseDirLeft( parent.baseDirLeft), baseDirRight(parent.baseDirRight) {} @@ -246,10 +240,10 @@ public: filter(filterIn) {} const HardFilter::FilterRef& getFilter() const; - template Zstring getDBFilename() const; virtual void swap(); private: + //this member is currently not used by the business logic -> may be removed! HardFilter::FilterRef filter; }; @@ -735,7 +729,7 @@ const Zstring& FileSystemObject::getObjShortName() const inline const Zstring FileSystemObject::getParentRelativeName() const { - return nameBuffer.parentRelNamePf.BeforeLast(common::FILE_NAME_SEPARATOR); //returns empty string if char not found + return nameBuffer.parentRelNamePf.BeforeLast(FILE_NAME_SEPARATOR); //returns empty string if char not found } @@ -1014,14 +1008,6 @@ const HardFilter::FilterRef& BaseDirMapping::getFilter() const } -template -inline -Zstring BaseDirMapping::getDBFilename() const -{ - return getBaseDir() + getSyncDBFilename(); -} - - inline void FileMapping::swap() { -- cgit