summaryrefslogtreecommitdiff
path: root/Source/Applications/Shell/Shell-fs.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/Shell/Shell-fs.class.cpp')
-rw-r--r--Source/Applications/Shell/Shell-fs.class.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/Source/Applications/Shell/Shell-fs.class.cpp b/Source/Applications/Shell/Shell-fs.class.cpp
index bb1990d..7607f34 100644
--- a/Source/Applications/Shell/Shell-fs.class.cpp
+++ b/Source/Applications/Shell/Shell-fs.class.cpp
@@ -2,26 +2,6 @@
#include <TextFile.class.h>
#include <Binding/Process.class.h>
-void Shell::cd(Vector<String>& args) {
- if (args.size() != 2) {
- outvt << "Invalid argument count.\n";
- } else {
- FSNode ncwd = FS::find(args[1], cwd);
- if (!ncwd.valid()) {
- outvt << "No such directory : " << args[1] << "\n";
- } else if (ncwd.type() == NT_DIRECTORY) {
- ncwd.setCwd();
- cwd = ncwd;
- } else {
- outvt << "Not a directory.\n";
- }
- }
-}
-
-void Shell::pwd(Vector<String>& args) {
- outvt << "Current directory : " << cwd.path() << "\n";
-}
-
void Shell::rm(Vector<String>& args) {
if (args.size() == 1) outvt << "No file to remove.\n";
for (u32int i = 1; i < args.size(); i++) {
@@ -59,14 +39,3 @@ void Shell::wf(Vector<String>& args) {
}
}
-void Shell::run(Vector<String>& args) {
- if (args.size() == 1) {
- outvt << "Nothing to run...\n";
- } else {
- Vector<String> appargs;
- for (u32int i = 1; i < args.size(); i++) appargs.push(args[i]);
- if (!appRun(args[1], appargs)) {
- outvt << "Error while launching process.\n";
- }
- }
-}