cleanup unused function
This commit is contained in:
parent
f588165dbe
commit
63c3474d9b
1 changed files with 3 additions and 17 deletions
20
skratch.c
20
skratch.c
|
|
@ -17,23 +17,6 @@ struct Flags
|
|||
};
|
||||
|
||||
|
||||
|
||||
int handle_args(int argc, char *argv[])
|
||||
{
|
||||
if (argc == 1)
|
||||
{
|
||||
//launch ed
|
||||
printf("NO ARGS!");
|
||||
return 0;
|
||||
}
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
printf("arg %d: %s\n", i, argv[i]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void set_editor(struct Flags *f)
|
||||
{
|
||||
char *ed;
|
||||
|
|
@ -120,13 +103,16 @@ int main(int argc, char *argv[])
|
|||
switch (arg)
|
||||
{
|
||||
case 'c':
|
||||
//delete all .skratch files
|
||||
printf("CLEAR!\n");
|
||||
break;
|
||||
|
||||
case 'l':
|
||||
//list all .skratch files
|
||||
printf("LIST!\n");
|
||||
break;
|
||||
case 'v':
|
||||
//use visual editor
|
||||
printf("VISUAL!\n");
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue