>We still let old code in the codebase

This commit is contained in:
CitadelStationBot
2017-04-24 21:22:11 -05:00
parent 29f441e255
commit defa9d863c
4 changed files with 3 additions and 17 deletions
-14
View File
@@ -1,17 +1,3 @@
//checks if a file exists and contains text
//returns text as a string if these conditions are met
/proc/return_file_text(filename)
if(fexists(filename) == 0)
throw EXCEPTION("return_file_text(): File not found")
return
var/text = file2text(filename)
if(!text)
throw EXCEPTION("return_file_text(): File empty")
return
return text
//Sends resource files to client cache
/client/proc/getFiles()
for(var/file in args)
+1 -1
View File
@@ -73,7 +73,7 @@
//Splits the text of a file at seperator and returns them in a list.
/proc/file2list(filename, seperator="\n")
return splittext(return_file_text(filename),seperator)
return splittext(file2text(filename),seperator)
//Turns a direction into text