Remove support for optdepends.txt
authorShadowNinja <shadowninja@minetest.net>
Fri, 13 Dec 2013 17:58:32 +0000 (12:58 -0500)
committerShadowNinja <shadowninja@minetest.net>
Fri, 13 Dec 2013 18:10:24 +0000 (13:10 -0500)
doc/lua_api.txt
src/mods.cpp

index a8b671eb6ed3ff97380437c313effa52c96218e3..28d8b9cc8abb647ad39b43caa7d5b8b647c1d3be 100644 (file)
@@ -129,13 +129,6 @@ screenshot.png:
 description.txt:
   File containing desctiption to be shown within mainmenu.
 
-optdepends.txt:
-  An alternative way of specifying optional dependencies.
-  Like depends.txt, a single line contains a single modname.
-
-  NOTE: This file exists for compatibility purposes only and
-  support for it will be removed from the engine by the end of 2013.
-
 init.lua:
   The main Lua script. Running this script should register everything it
   wants to register. Subsequent execution depends on minetest calling the
index bcdda01ef72911e252cc17ca83c3b1b5023f857c..90feee307b93b56634078d2ff8745d0664d34cc5 100644 (file)
@@ -77,16 +77,6 @@ void parseModContents(ModSpec &spec)
                                }
                        }
                }
-
-               // FIXME: optdepends.txt is deprecated
-               // remove this code at some point in the future
-               std::ifstream is2((spec.path+DIR_DELIM+"optdepends.txt").c_str());
-               while(is2.good()){
-                       std::string dep;
-                       std::set<char> symbols;
-                       if(parseDependsLine(is2, dep, symbols))
-                               spec.optdepends.insert(dep);
-               }
        }
 }