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)
|
void set_editor(struct Flags *f)
|
||||||
{
|
{
|
||||||
char *ed;
|
char *ed;
|
||||||
|
|
@ -120,13 +103,16 @@ int main(int argc, char *argv[])
|
||||||
switch (arg)
|
switch (arg)
|
||||||
{
|
{
|
||||||
case 'c':
|
case 'c':
|
||||||
|
//delete all .skratch files
|
||||||
printf("CLEAR!\n");
|
printf("CLEAR!\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'l':
|
case 'l':
|
||||||
|
//list all .skratch files
|
||||||
printf("LIST!\n");
|
printf("LIST!\n");
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
|
//use visual editor
|
||||||
printf("VISUAL!\n");
|
printf("VISUAL!\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue