From a137f817f5e569211afdef0134c2179fdbad507f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Jan 2014 18:05:33 +0100 Subject: db/Directory: move isRootDirectory() to Uri.hxx Decouple command/OtherCommands.cxx from the "simple" database plugin. --- src/db/Directory.hxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/db/Directory.hxx') diff --git a/src/db/Directory.hxx b/src/db/Directory.hxx index e114b27f4..705826a65 100644 --- a/src/db/Directory.hxx +++ b/src/db/Directory.hxx @@ -239,10 +239,4 @@ public: LightDirectory Export() const; }; -static inline bool -isRootDirectory(const char *name) -{ - return name[0] == 0 || (name[0] == '/' && name[1] == 0); -} - #endif -- cgit v1.2.3