Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
625db905
Commit
625db905
authored
Feb 20, 2012
by
Moritz Lipp
Browse files
Removed some obsolete checks
parent
8219d48e
Changes
3
Hide whitespace changes
Inline
Side-by-side
commands.c
View file @
625db905
...
...
@@ -157,11 +157,6 @@ cmd_info(girara_session_t* session, girara_list_t* UNUSED(argument_list))
char
*
tmp
=
zathura_document_meta_get
(
zathura
->
document
,
meta_fields
[
i
].
field
,
NULL
);
if
(
tmp
!=
NULL
)
{
char
*
text
=
g_strdup_printf
(
"<b>%s:</b> %s
\n
"
,
meta_fields
[
i
].
name
,
tmp
);
if
(
text
==
NULL
)
{
g_free
(
tmp
);
return
true
;
}
g_string_append
(
string
,
text
);
g_free
(
text
);
...
...
completion.c
View file @
625db905
...
...
@@ -72,10 +72,6 @@ list_files(zathura_t* zathura, const char* current_path, const char* current_fil
};
char
*
full_path
=
g_strdup_printf
(
"%s%s%s"
,
current_path
,
tmp
,
e_name
);
if
(
full_path
==
NULL
)
{
g_free
(
e_name
);
goto
error_free
;
}
if
(
g_file_test
(
full_path
,
G_FILE_TEST_IS_DIR
)
==
true
)
{
char
*
tmp_path
=
full_path
;
...
...
@@ -138,9 +134,6 @@ cc_open(girara_session_t* session, const char* input)
}
char
*
tmp_path
=
g_strdup_printf
(
"%s/%s"
,
cwd
,
path
);
if
(
tmp_path
==
NULL
)
{
goto
error_free
;
}
g_free
(
path
);
path
=
tmp_path
;
...
...
@@ -150,10 +143,6 @@ cc_open(girara_session_t* session, const char* input)
bool
is_dir
=
(
path
[
strlen
(
path
)
-
1
]
==
'/'
)
?
true
:
false
;
if
((
g_file_test
(
path
,
G_FILE_TEST_IS_DIR
)
==
TRUE
)
&&
!
is_dir
)
{
char
*
tmp_path
=
g_strdup_printf
(
"%s/"
,
path
);
if
(
tmp_path
==
NULL
)
{
goto
error_free
;
}
g_free
(
path
);
path
=
tmp_path
;
is_dir
=
true
;
...
...
database-plain.c
View file @
625db905
...
...
@@ -234,9 +234,6 @@ zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned int
}
char
*
tmp
=
g_strdup_printf
(
"%f"
,
scale
);
if
(
tmp
==
NULL
)
{
return
false
;
}
g_key_file_set_integer
(
db
->
history
,
file
,
KEY_PAGE
,
page
);
g_key_file_set_integer
(
db
->
history
,
file
,
KEY_OFFSET
,
offset
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment