Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GeanyVC: Remove a few unused variables

  • Loading branch information...
commit b542cef334ad4322a1a4888830faa58a4bcc09ba 1 parent 430127f
@b4n b4n authored
View
5 geanyvc/src/vc_bzr.c
@@ -118,7 +118,6 @@ get_base_dir(const gchar * path)
static gboolean
in_vc_bzr(const gchar * filename)
{
- gint exit_code;
const gchar *argv[] = { "bzr", "log", NULL, NULL };
gchar *dir;
gchar *base_name;
@@ -135,8 +134,8 @@ in_vc_bzr(const gchar * filename)
base_name = g_path_get_basename(filename);
argv[2] = base_name;
- exit_code = execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
- filename, NULL, NULL);
+ execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
+ filename, NULL, NULL);
if (NZV(std_output))
{
View
11 geanyvc/src/vc_git.c
@@ -181,7 +181,6 @@ static const VC_COMMAND commands[VC_COMMAND_COUNT] = {
static gboolean
in_vc_git(const gchar * filename)
{
- gint exit_code;
const gchar *argv[] = { "git", "ls-files", "--", NULL, NULL };
gchar *dir;
gchar *base_name;
@@ -198,8 +197,8 @@ in_vc_git(const gchar * filename)
base_name = g_path_get_basename(filename);
argv[3] = base_name;
- exit_code = execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
- dir, NULL, NULL);
+ execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
+ dir, NULL, NULL);
if (NZV(std_output))
{
ret = TRUE;
@@ -252,7 +251,6 @@ parse_git_status(GSList * lst, const gchar * base_dir, const gchar * txt, const
static GSList *
get_commit_files_git(const gchar * file)
{
- gint exit_code;
const gchar *argv[] = { "git", "status", NULL };
const gchar *env[] = { "PAGES=cat", NULL };
gchar *std_out = NULL;
@@ -261,9 +259,8 @@ get_commit_files_git(const gchar * file)
g_return_val_if_fail(base_dir, NULL);
- exit_code =
- execute_custom_command(base_dir, (const gchar **) argv, (const gchar **) env,
- &std_out, NULL, base_dir, NULL, NULL);
+ execute_custom_command(base_dir, (const gchar **) argv, (const gchar **) env,
+ &std_out, NULL, base_dir, NULL, NULL);
g_return_val_if_fail(std_out, NULL);
ret = parse_git_status(ret, base_dir, std_out, "modified:", FILE_STATUS_MODIFIED);
View
5 geanyvc/src/vc_hg.c
@@ -117,7 +117,6 @@ get_base_dir(const gchar * path)
static gboolean
in_vc_hg(const gchar * filename)
{
- gint exit_code;
const gchar *argv[] = { "hg", "status", "-mac", NULL, NULL };
gchar *dir;
gchar *base_name;
@@ -134,8 +133,8 @@ in_vc_hg(const gchar * filename)
base_name = g_path_get_basename(filename);
argv[3] = base_name;
- exit_code = execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
- dir, NULL, NULL);
+ execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
+ dir, NULL, NULL);
if (NZV(std_output))
{
ret = TRUE;
View
5 geanyvc/src/vc_svn.c
@@ -166,7 +166,6 @@ get_base_dir(const gchar * path)
static gboolean
in_vc_svn(const gchar * filename)
{
- gint exit_code;
const gchar *argv[] = { "svn", "info", "--non-interactive", NULL, NULL };
gchar *dir;
gchar *base_name;
@@ -183,8 +182,8 @@ in_vc_svn(const gchar * filename)
base_name = g_path_get_basename(filename);
argv[3] = base_name;
- exit_code = execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
- dir, NULL, NULL);
+ execute_custom_command(dir, (const gchar **) argv, NULL, &std_output, NULL,
+ dir, NULL, NULL);
if (NZV(std_output))
{
ret = TRUE;
Please sign in to comment.
Something went wrong with that request. Please try again.