summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-01-20 22:03:56 +0000
committerElijah Newren <newren@src.gnome.org>2006-01-20 22:03:56 +0000
commit32d4bd6b63a9a5fe044248740e2dfa9050c1fbb6 (patch)
treea3ff366ed37c68e988ff73eb6dca50a822ca856a /src/session.c
parent4c10722262a8a5f0fc1f4e931867e2a4b6363199 (diff)
downloadmetacity-32d4bd6b63a9a5fe044248740e2dfa9050c1fbb6.tar.gz
metacity-32d4bd6b63a9a5fe044248740e2dfa9050c1fbb6.tar.bz2
Patch from Kjartan Maraas to fix a lot of tiny issues (unused variable
2006-01-20 Elijah Newren <newren gmail com> * src/async-getprop.c: * src/common.h: * src/display.c: * src/eggaccelerators.c: * src/frames.c: * src/gradient.c: * src/iconcache.c: * src/keybindings.c: * src/metaaccellabel.c: * src/place.c: * src/prefs.c: * src/preview-widget.c: * src/screen.c: * src/session.c: * src/stack.c: * src/tabpopup.c: * src/theme-viewer.c: * src/theme.c: * src/window-props.c: * src/window.c: * src/workspace.c: * src/tools/metacity-window-demo.c: * src/wm-tester/test-gravity.c: * src/wm-tester/test-resizing.c: * src/wm-tester/test-size-hints.c: Patch from Kjartan Maraas to fix a lot of tiny issues (unused variable removal, making unused variables used again, correction of types passed/declared for printf arguments, removal of unneeded breaks and returns, dead code removal, dead code revival, renaming to prevent shadowed variables, declaring unexported functions as static) spotted by the intel compiler. #321439
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/session.c b/src/session.c
index e4a08b3..0f87b98 100644
--- a/src/session.c
+++ b/src/session.c
@@ -673,31 +673,22 @@ window_type_to_string (MetaWindowType type)
{
case META_WINDOW_NORMAL:
return "normal";
- break;
case META_WINDOW_DESKTOP:
return "desktop";
- break;
case META_WINDOW_DOCK:
return "dock";
- break;
case META_WINDOW_DIALOG:
return "dialog";
- break;
case META_WINDOW_MODAL_DIALOG:
return "modal_dialog";
- break;
case META_WINDOW_TOOLBAR:
return "toolbar";
- break;
case META_WINDOW_MENU:
return "menu";
- break;
case META_WINDOW_SPLASHSCREEN:
return "splashscreen";
- break;
case META_WINDOW_UTILITY:
return "utility";
- break;
}
return "";
@@ -1485,10 +1476,6 @@ text_handler (GMarkupParseContext *context,
gpointer user_data,
GError **error)
{
- ParseData *pd;
-
- pd = user_data;
-
/* Right now we don't have any elements where we care about their
* content
*/
@@ -1617,8 +1604,6 @@ find_best_match (GSList *infos,
return matching_type;
else
return infos->data;
-
- return NULL;
}
const MetaWindowSessionInfo*