diff --git a/lib/memfs/fake/directory.rb b/lib/memfs/fake/directory.rb
index <HASH>..<HASH> 100644
--- a/lib/memfs/fake/directory.rb
+++ b/lib/memfs/fake/directory.rb
@@ -26,7 +26,6 @@ module MemFs
         if entry_names.include?(path)
           entries[path]
         elsif entry_names.include?(parts.first)
-          parts = path.split('/', 2)
           entries[parts.first].find(parts.last)
         end
       end
Removing a useless line in Directory#find