diff --git a/gtk/src/filter_epx_unsafe.cpp b/gtk/src/filter_epx_unsafe.cpp index 23c39f18..3d83e2ab 100644 --- a/gtk/src/filter_epx_unsafe.cpp +++ b/gtk/src/filter_epx_unsafe.cpp @@ -301,8 +301,6 @@ void EPX_16_unsafe (uint8 *srcPtr, srcPtr += srcPitch; dstPtr += dstPitch << 1; } - - return; } /* Blends with edge pixel instead of just using it directly. */ @@ -399,6 +397,4 @@ void EPX_16_smooth_unsafe (uint8 *srcPtr, srcPtr += srcPitch; dstPtr += dstPitch << 1; } - - return; } diff --git a/gtk/src/gtk_binding.cpp b/gtk/src/gtk_binding.cpp index 198c728d..e83dea8d 100644 --- a/gtk/src/gtk_binding.cpp +++ b/gtk/src/gtk_binding.cpp @@ -14,8 +14,6 @@ Binding::Binding () { value = 0; - - return; } Binding::Binding (GdkEventKey *event) @@ -42,8 +40,6 @@ Binding::Binding (GdkEventKey *event) if (event->state & GDK_MOD1_MASK) value |= BINDING_ALT; - - return; } Binding::Binding (unsigned int key, bool ctrl, bool shift, bool alt) @@ -73,8 +69,6 @@ Binding::Binding (unsigned int device, Binding::Binding (unsigned int val) { value = val; - - return; } Binding::Binding (const Binding& binding) @@ -97,8 +91,6 @@ void Binding::clear () { value = 0; - - return; } unsigned int @@ -282,6 +274,4 @@ Binding::to_string (char *str) { sprintf (str, _("Unset")); } - - return; } diff --git a/gtk/src/gtk_builder_window.cpp b/gtk/src/gtk_builder_window.cpp index ed033577..3602e49e 100644 --- a/gtk/src/gtk_builder_window.cpp +++ b/gtk/src/gtk_builder_window.cpp @@ -14,8 +14,6 @@ GtkBuilderWindow::GtkBuilderWindow (const char *root) NULL); window = get_widget (root); - - return; } GtkBuilderWindow::~GtkBuilderWindow () @@ -76,8 +74,6 @@ GtkBuilderWindow::signal_connection_func (GtkBuilder *builder, else { } - - return; } void @@ -93,16 +89,12 @@ GtkBuilderWindow::signal_connect (GtkBuilderWindowCallbacks *callbacks) (gpointer) this); this->callbacks = NULL; - - return; } void GtkBuilderWindow::enable_widget (const char *name, unsigned char state) { gtk_widget_set_sensitive (get_widget (name), state); - - return; } void @@ -110,16 +102,12 @@ GtkBuilderWindow::resize (int width, int height) { if (width > 0 && height > 0) gtk_window_resize (GTK_WINDOW (window), width, height); - - return; } void GtkBuilderWindow::refresh () { gtk_widget_queue_draw (GTK_WIDGET (window)); - - return; } int @@ -146,8 +134,6 @@ void GtkBuilderWindow::set_button_label (const char *name, const char *label) { gtk_button_set_label (GTK_BUTTON (get_widget (name)), label); - - return; } unsigned char @@ -186,8 +172,6 @@ void GtkBuilderWindow::set_slider (const char *name, float value) { gtk_range_set_value (GTK_RANGE (get_widget (name)), (double) value); - - return; } void @@ -195,7 +179,6 @@ GtkBuilderWindow::set_check (const char *name, unsigned char value) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (get_widget (name)), value); - return; } void @@ -205,24 +188,18 @@ GtkBuilderWindow::set_entry_value (const char *name, unsigned int value) snprintf (text, 80, "%u", value); gtk_entry_set_text (GTK_ENTRY (get_widget (name)), text); - - return; } void GtkBuilderWindow::set_entry_text (const char *name, const char *text) { gtk_entry_set_text (GTK_ENTRY (get_widget (name)), text); - - return; } void GtkBuilderWindow::set_combo (const char *name, unsigned char value) { gtk_combo_box_set_active (GTK_COMBO_BOX (get_widget (name)), value); - - return; } void @@ -230,8 +207,6 @@ GtkBuilderWindow::set_spin (const char *name, double value) { gtk_spin_button_set_value (GTK_SPIN_BUTTON (get_widget (name)), (double) value); - - return; } void @@ -250,8 +225,6 @@ GtkBuilderWindow::combo_box_append (GtkComboBox *combo, const char *value) gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, value, -1); - - return; } GtkWindow * diff --git a/gtk/src/gtk_cheat.cpp b/gtk/src/gtk_cheat.cpp index 7f5d2290..80edfecb 100644 --- a/gtk/src/gtk_cheat.cpp +++ b/gtk/src/gtk_cheat.cpp @@ -25,8 +25,6 @@ display_errorbox (const char *error) gtk_window_set_title (GTK_WINDOW (dialog), _("Error")); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); - - return; } static void @@ -73,8 +71,6 @@ event_code_toggled (GtkCellRendererToggle *cell_renderer, int enabled = !gtk_cell_renderer_toggle_get_active (cell_renderer); ((Snes9xCheats *) data)->toggle_code (path, enabled); - - return; } static void @@ -84,8 +80,6 @@ event_row_activated (GtkTreeView *tree_view, gpointer data) { ((Snes9xCheats *) data)->row_activated (path); - - return; } static void @@ -96,8 +90,6 @@ event_row_inserted (GtkTreeModel *tree_model, { int *indices = gtk_tree_path_get_indices (path); ((Snes9xCheats *) data)->row_inserted (indices[0]); - - return; } static void @@ -107,8 +99,6 @@ event_row_deleted (GtkTreeModel *tree_model, { int *indices = gtk_tree_path_get_indices (path); ((Snes9xCheats *) data)->row_deleted (indices[0]); - - return; } void @@ -193,8 +183,6 @@ Snes9xCheats::Snes9xCheats () gtk_widget_realize (window); signal_connect (callbacks); - - return; } Snes9xCheats::~Snes9xCheats () @@ -202,8 +190,6 @@ Snes9xCheats::~Snes9xCheats () gtk_widget_destroy (window); g_object_unref (store); - - return; } void @@ -234,8 +220,6 @@ Snes9xCheats::show () gtk_dialog_run (GTK_DIALOG (window)); top_level->unpause_from_focus_change (); - - return; } static void cheat_move (int src, int dst) @@ -359,8 +343,6 @@ Snes9xCheats::refresh_tree_view () } enable_dnd (true); - - return; } void @@ -398,8 +380,6 @@ Snes9xCheats::add_code () GtkScrolledWindow *scroll = GTK_SCROLLED_WINDOW (get_widget ("cheat_scrolledwindow")); GtkAdjustment *adj = gtk_scrolled_window_get_vadjustment (scroll); gtk_adjustment_set_value (adj, gtk_adjustment_get_upper (adj)); - - return; } void @@ -417,8 +397,6 @@ Snes9xCheats::remove_code () enable_dnd (true); S9xDeleteCheatGroup (index); - - return; } void @@ -428,8 +406,6 @@ Snes9xCheats::delete_all_cheats () S9xDeleteCheats (); gtk_list_store_clear (store); enable_dnd (true); - - return; } void @@ -500,8 +476,6 @@ Snes9xCheats::search_database () "translation or modified copy, you may be able to find and manually enter the codes.")); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog)); - - return; } void @@ -521,8 +495,6 @@ Snes9xCheats::row_activated (GtkTreePath *path) set_entry_text ("code_entry", cheat_text); delete[] cheat_text; set_entry_text ("description_entry", Cheat.g[indices[0]].name); - - return; } void @@ -539,8 +511,6 @@ Snes9xCheats::toggle_code (const gchar *path, int enabled) S9xEnableCheatGroup (index); else S9xDisableCheatGroup (index); - - return; } void @@ -572,8 +542,6 @@ Snes9xCheats::update_code () gtk_widget_grab_focus (get_widget ("code_entry")); refresh_tree_view (); - - return; } void @@ -586,7 +554,5 @@ Snes9xCheats::disable_all () } refresh_tree_view (); - - return; } diff --git a/gtk/src/gtk_control.cpp b/gtk/src/gtk_control.cpp index 1c4ba5cb..01a97976 100644 --- a/gtk/src/gtk_control.cpp +++ b/gtk/src/gtk_control.cpp @@ -385,8 +385,6 @@ void S9xProcessEvents (bool8 block) S9xReleaseJoysticks (); } #endif - - return; } #ifdef USE_JOYSTICK @@ -500,8 +498,6 @@ JoyDevice::JoyDevice (unsigned int device_num) num_hats); memset (axis, 0, sizeof (int) * num_axes); - - return; } JoyDevice::~JoyDevice () diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp index 0af7c9e7..4f8b1398 100644 --- a/gtk/src/gtk_display.cpp +++ b/gtk/src/gtk_display.cpp @@ -63,8 +63,6 @@ void S9xSetEndianess (int type) { endianess = type; - - return; } double @@ -171,8 +169,6 @@ S9xApplyAspect (int &s_width, /* Output: x */ s_height = y; d_width = w; d_height = h; - - return; } void @@ -181,8 +177,6 @@ S9xRegisterYUVTables (uint8 *y, uint8 *u, uint8 *v) y_table = y; u_table = u; v_table = v; - - return; } /* YUY2 in LSB first format */ @@ -237,8 +231,6 @@ internal_convert_16_yuv (void *src_buffer, } } } - - return; } static void @@ -464,8 +456,6 @@ internal_convert_mask (void *src_buffer, break; } } - - return; } static void @@ -562,8 +552,6 @@ internal_convert (void *src_buffer, } } } - - return; } static void @@ -622,8 +610,6 @@ S9xForceHires (void *buffer, height *= 2; } - - return; } #undef AVERAGE_565 @@ -652,8 +638,6 @@ S9xMergeHires (void *buffer, } width >>= 1; - - return; } #if 0 @@ -687,8 +671,6 @@ S9xBlendHires (void *buffer, int pitch, int &width, int &height) memcpy (input, tmp, pitch); } - - return; } #endif @@ -719,8 +701,6 @@ filter_2x (void *src, (uint8 *) dst + (y * 2) * dst_pitch, width * 2 * 2); } - - return; } void @@ -754,8 +734,6 @@ filter_3x (void *src, width * 2 * 3); } } - - return; } void @@ -790,8 +768,6 @@ filter_4x (void *src, width * 2 * 4); } } - - return; } void @@ -824,11 +800,8 @@ filter_scanlines (void *src_buffer, dst_a += dst_pitch; dst_b += dst_pitch; } - - return; } - void get_filter_scale (int &width, int &height) { @@ -944,8 +917,6 @@ get_filter_scale (int &width, int &height) height *= 2; break; } - - return; } static void @@ -1163,8 +1134,6 @@ internal_filter (uint8 *src_buffer, } get_filter_scale (width, height); - - return; } static void @@ -1218,8 +1187,6 @@ thread_worker (gpointer data, } job->complete = 1; - - return; } static void @@ -1233,8 +1200,6 @@ create_thread_pool () TRUE, NULL); } - - return; } static void @@ -1291,8 +1256,6 @@ internal_threaded_convert (void *src_buffer, sched_yield (); } - - return; } static void @@ -1358,8 +1321,6 @@ internal_threaded_convert_mask (void *src_buffer, sched_yield (); } - - return; } static void @@ -1423,8 +1384,6 @@ internal_threaded_filter (uint8 *src_buffer, } get_filter_scale (width, height); - - return; } void @@ -1450,8 +1409,6 @@ S9xFilter (uint8 *src_buffer, dst_pitch, width, height); - - return; } void @@ -1477,7 +1434,6 @@ S9xConvertYUV (void *src_buffer, dst_pitch, width, height); - return; } void @@ -1505,7 +1461,6 @@ S9xConvert (void *src, width, height, bpp); - return; } void @@ -1542,15 +1497,12 @@ S9xConvertMask (void *src, gshift, bshift, bpp); - return; } void S9xDisplayRefresh (int width, int height) { driver->refresh (width, height); - - return; } static void @@ -1560,8 +1512,6 @@ ntsc_filter_init () scanline_mask = scanline_masks [gui_config->ntsc_scanline_intensity]; snes_ntsc_init (&snes_ntsc, &gui_config->ntsc_setup); - - return; } void @@ -1573,8 +1523,6 @@ S9xDisplayReconfigure () { g_thread_pool_set_max_threads (pool, gui_config->num_threads - 1, NULL); } - - return; } void @@ -1608,8 +1556,6 @@ S9xQueryDrivers () gui_config->xrr_screen_resources->crtcs[0]); } #endif - - return; } bool8 @@ -1747,8 +1693,6 @@ S9xInitDriver () } pool = NULL; - - return; } S9xDisplayDriver * @@ -1769,16 +1713,12 @@ S9xInitDisplay (int argc, char **argv) S9xInitDriver (); S9xGraphicsInit (); S9xDisplayReconfigure (); - - return; } void S9xDisplayClearBuffers () { driver->clear_buffers (); - - return; } void @@ -1792,8 +1732,6 @@ S9xDeinitDisplay () if (pool) g_thread_pool_free (pool, FALSE, TRUE); - - return; } void @@ -1820,8 +1758,6 @@ S9xReinitDisplay () driver->push_buffer (buffer); free (buffer); - - return; } bool8 @@ -1840,19 +1776,16 @@ S9xInitUpdate () void S9xSetPalette () { - return; } void S9xTextMode () { - return; } void S9xGraphicsMode () { - return; } diff --git a/gtk/src/gtk_display_driver_gtk.cpp b/gtk/src/gtk_display_driver_gtk.cpp index ef126398..fc736cb0 100644 --- a/gtk/src/gtk_display_driver_gtk.cpp +++ b/gtk/src/gtk_display_driver_gtk.cpp @@ -11,8 +11,6 @@ S9xGTKDisplayDriver::S9xGTKDisplayDriver (Snes9xWindow *window, this->window = window; this->config = config; this->drawing_area = GTK_WIDGET (window->drawing_area); - - return; } void @@ -58,8 +56,6 @@ S9xGTKDisplayDriver::update (int width, int height, int yoffset) S9xApplyAspect (x, y, w, h); output (final_buffer, final_pitch, x, y, width, height, w, h); - - return; } void @@ -113,8 +109,6 @@ S9xGTKDisplayDriver::output (void *src, window->release_cairo (); window->set_mouseable_area (x, y, width, height); - - return; } int @@ -143,8 +137,6 @@ S9xGTKDisplayDriver::deinit () free (buffer[0]); free (buffer[1]); - - return; } void @@ -197,16 +189,12 @@ S9xGTKDisplayDriver::clear () cairo_fill (cr); window->release_cairo (); - - return; } void S9xGTKDisplayDriver::refresh (int width, int height) { clear (); - - return; } uint16 * @@ -225,8 +213,6 @@ void S9xGTKDisplayDriver::push_buffer (uint16 *src) { memmove (GFX.Screen, src, image_size); - - return; } void @@ -234,6 +220,4 @@ S9xGTKDisplayDriver::clear_buffers () { memset (buffer[0], 0, image_padded_size); memset (buffer[1], 0, scaled_padded_size); - - return; } diff --git a/gtk/src/gtk_display_driver_xv.cpp b/gtk/src/gtk_display_driver_xv.cpp index e12992d5..09571bf3 100644 --- a/gtk/src/gtk_display_driver_xv.cpp +++ b/gtk/src/gtk_display_driver_xv.cpp @@ -32,8 +32,6 @@ S9xXVDisplayDriver::S9xXVDisplayDriver (Snes9xWindow *window, display = gdk_x11_display_get_xdisplay (gtk_widget_get_display (drawing_area)); last_known_width = last_known_height = -1; - - return; } void @@ -41,8 +39,6 @@ S9xXVDisplayDriver::resize_window (int width, int height) { gdk_window_destroy (gdk_window); create_window (width, height); - - return; } void @@ -178,8 +174,6 @@ S9xXVDisplayDriver::update (int width, int height, int yoffset) top_level->set_mouseable_area (dst_x, dst_y, dst_width, dst_height); XSync (display, False); - - return; } void @@ -227,8 +221,6 @@ S9xXVDisplayDriver::update_image_size (int width, int height) desired_width = width; desired_height = height; } - - return; } int @@ -491,8 +483,6 @@ S9xXVDisplayDriver::deinit () padded_buffer[0] = NULL; padded_buffer[1] = NULL; - - return; } void @@ -546,16 +536,12 @@ S9xXVDisplayDriver::clear () } XSync (display, False); - - return; } void S9xXVDisplayDriver::refresh (int width, int height) { clear (); - - return; } uint16 * @@ -574,8 +560,6 @@ void S9xXVDisplayDriver::push_buffer (uint16 *src) { memmove (GFX.Screen, src, image_size); - - return; } void @@ -605,8 +589,6 @@ S9xXVDisplayDriver::clear_buffers () { memset (xv_image->data, 0, xv_image->data_size); } - - return; } int diff --git a/gtk/src/gtk_file.cpp b/gtk/src/gtk_file.cpp index 1c8bed4f..10422871 100644 --- a/gtk/src/gtk_file.cpp +++ b/gtk/src/gtk_file.cpp @@ -71,8 +71,6 @@ _splitpath (const char *path, char *drive, char *dir, char *fname, char *ext) *ext = '\0'; } } - - return; } void @@ -97,8 +95,6 @@ _makepath (char *path, strcat (path, "."); strcat (path, ext); } - - return; } const char * @@ -371,7 +367,6 @@ extern "C" char *osd_GetPackDir () void S9xLoadSDD1Data () { - return; } void @@ -379,7 +374,6 @@ S9xAutoSaveSRAM () { Memory.SaveSRAM (S9xGetFilename (".srm", SRAM_DIR)); S9xSaveCheatFile (S9xGetFilename (".cht", CHEAT_DIR)); - return; } void @@ -396,8 +390,6 @@ S9xLoadState (const char *filename) { fprintf (stderr, "Failed to load state file: %s\n", filename); } - - return; } void @@ -412,8 +404,6 @@ S9xSaveState (const char *filename) { fprintf (stderr, "Couldn't save state file: %s\n", filename); } - - return; } char * @@ -511,8 +501,6 @@ S9xQuickSaveSlot (int slot) S9xSetInfoString (buf); } - - return; } void @@ -563,7 +551,5 @@ S9xQuickLoadSlot (int slot) S9xMessage (S9X_ERROR, S9X_FREEZE_FILE_NOT_FOUND, "Freeze file not found"); - - return; } diff --git a/gtk/src/gtk_netplay.cpp b/gtk/src/gtk_netplay.cpp index 2d07d6d1..2572b7cb 100644 --- a/gtk/src/gtk_netplay.cpp +++ b/gtk/src/gtk_netplay.cpp @@ -25,8 +25,6 @@ S9xNetplayPreconnect () NetPlay.MaxBehindFrameCount = gui_config->netplay_max_frame_loss; NetPlay.Waiting4EmulationThread = FALSE; - - return; } static void @@ -75,8 +73,6 @@ S9xNetplayConnect () CPU.Flags = flags; top_level->configure_widgets (); - - return; } void @@ -84,8 +80,6 @@ S9xNetplaySyncClients () { if (Settings.NetPlay && Settings.NetPlayServer) S9xNPServerQueueSyncAll (); - - return; } void @@ -96,8 +90,6 @@ S9xNetplayStopServer () g_thread_join (npthread); Settings.NetPlayServer = FALSE; gui_config->netplay_server_up = FALSE; - - return; } void @@ -118,8 +110,6 @@ S9xNetplayDisconnect () NetPlay.Paused = FALSE; top_level->configure_widgets (); - - return; } static gpointer @@ -168,8 +158,6 @@ S9xNetplayStartServer () CPU.Flags = flags; top_level->configure_widgets (); - - return; } void @@ -201,8 +189,6 @@ S9xNetplayDialogOpen () delete np_dialog; top_level->unpause_from_focus_change (); - - return; } int @@ -338,8 +324,6 @@ S9xNetplayPop () for (int i = 0; i < 8; i++) MovieSetJoypad (i, local_joypads[i]); - - return; } diff --git a/gtk/src/gtk_netplay_dialog.cpp b/gtk/src/gtk_netplay_dialog.cpp index 063fafab..8bfbe997 100644 --- a/gtk/src/gtk_netplay_dialog.cpp +++ b/gtk/src/gtk_netplay_dialog.cpp @@ -17,8 +17,6 @@ event_browse_clicked (GtkButton *button, gpointer data) g_free (filename); } - - return; } static void @@ -27,8 +25,6 @@ event_clear_clicked (GtkButton *button, gpointer data) Snes9xNetplayDialog *np_dialog = (Snes9xNetplayDialog *) data; gtk_entry_set_text (GTK_ENTRY (np_dialog->get_widget ("rom_image")), ""); - - return; } static void @@ -53,8 +49,6 @@ Snes9xNetplayDialog::Snes9xNetplayDialog (Snes9xConfig *config) : signal_connect (callbacks); this->config = config; - - return; } void @@ -75,8 +69,6 @@ Snes9xNetplayDialog::update_state () enable_widget ("sync_reset", FALSE); enable_widget ("send_image", FALSE); } - - return; } void @@ -93,8 +85,6 @@ Snes9xNetplayDialog::settings_to_dialog () set_check ("host_radio", config->netplay_is_server); update_state (); - - return; } void @@ -110,8 +100,6 @@ Snes9xNetplayDialog::settings_from_dialog () config->netplay_is_server = get_check ("host_radio"); config->save_config_file (); - - return; } int diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 36e48832..1fa09610 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -53,8 +53,6 @@ static void event_sram_folder_browse (GtkButton *widget, gpointer data) { ((Snes9xPreferences *) data)->browse_folder_dialog (); - - return; } #ifdef USE_JOYSTICK @@ -62,8 +60,6 @@ static void event_calibrate (GtkButton *widget, gpointer data) { ((Snes9xPreferences *) data)->calibration_dialog (); - - return; } #endif @@ -99,8 +95,6 @@ event_control_toggle (GtkToggleButton *widget, gpointer data) gtk_toggle_button_set_active (widget, state); toggle_lock = 0; - - return; } static gboolean @@ -163,8 +157,6 @@ event_ntsc_composite_preset (GtkButton *widget, gpointer data) Snes9xPreferences *window = (Snes9xPreferences *) data; window->config->ntsc_setup = snes_ntsc_composite; window->load_ntsc_settings (); - - return; } static void @@ -173,8 +165,6 @@ event_ntsc_svideo_preset (GtkButton *widget, gpointer data) Snes9xPreferences *window = (Snes9xPreferences *) data; window->config->ntsc_setup = snes_ntsc_svideo; window->load_ntsc_settings (); - - return; } static void @@ -183,8 +173,6 @@ event_ntsc_rgb_preset (GtkButton *widget, gpointer data) Snes9xPreferences *window = (Snes9xPreferences *) data; window->config->ntsc_setup = snes_ntsc_rgb; window->load_ntsc_settings (); - - return; } static void @@ -193,8 +181,6 @@ event_ntsc_monochrome_preset (GtkButton *widget, gpointer data) Snes9xPreferences *window = (Snes9xPreferences *) data; window->config->ntsc_setup = snes_ntsc_monochrome; window->load_ntsc_settings (); - - return; } @@ -202,16 +188,12 @@ static void event_swap_with (GtkButton *widget, gpointer data) { ((Snes9xPreferences *) data)->swap_with (); - - return; } static void event_reset_current_joypad (GtkButton *widget, gpointer data) { ((Snes9xPreferences *) data)->reset_current_joypad (); - - return; } static void @@ -263,8 +245,6 @@ event_shader_select (GtkButton *widget, gpointer data) } gtk_widget_destroy (dialog); - - return; #endif } @@ -275,8 +255,6 @@ event_game_data_clear (GtkEntry *entry, gpointer user_data) { gtk_entry_set_text (entry, SAME_GAME); - - return; } static void @@ -325,8 +303,6 @@ event_game_data_browse (GtkButton *widget, gpointer data) } gtk_widget_destroy (dialog); - - return; } static void @@ -357,8 +333,6 @@ event_hw_accel_changed (GtkComboBox *widget, gpointer data) gtk_widget_hide (window->get_widget ("opengl_frame")); break; } - - return; } static void @@ -402,9 +376,6 @@ event_scale_method_changed (GtkComboBox *widget, gpointer user_data) { gtk_widget_hide (window->get_widget ("scanline_filter_frame")); } - - - return; } static void @@ -413,8 +384,6 @@ event_control_combo_changed (GtkComboBox *widget, gpointer user_data) Snes9xPreferences *window = (Snes9xPreferences *) user_data; window->bindings_to_dialog (gtk_combo_box_get_active (widget)); - - return; } #ifdef USE_JOYSTICK @@ -469,8 +438,6 @@ Snes9xPreferences::calibration_dialog () gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); - - return; } #endif @@ -485,8 +452,6 @@ event_input_rate_changed (GtkRange *range, gpointer data) snprintf (text, 256, "%.4f hz", value); gtk_label_set_text (label, text); - - return; } void @@ -575,8 +540,6 @@ event_about_clicked (GtkButton *widget, gpointer data) gtk_dialog_run (GTK_DIALOG (about_dialog->get_window ())); delete about_dialog; - - return; } Snes9xPreferences::Snes9xPreferences (Snes9xConfig *config) : @@ -623,15 +586,11 @@ Snes9xPreferences::Snes9xPreferences (Snes9xConfig *config) : get_widget ("relative_video_rate"), NULL, (GConnectFlags) 0); - - return; } Snes9xPreferences::~Snes9xPreferences () { delete[] mode_indices; - - return; } void @@ -648,8 +607,6 @@ Snes9xPreferences::load_ntsc_settings () set_slider ("ntsc_resolution", config->ntsc_setup.resolution); set_slider ("ntsc_saturation", config->ntsc_setup.saturation); set_slider ("ntsc_sharpness", config->ntsc_setup.sharpness); - - return; } void @@ -666,8 +623,6 @@ Snes9xPreferences::store_ntsc_settings () config->ntsc_setup.resolution = get_slider ("ntsc_resolution"); config->ntsc_setup.saturation = get_slider ("ntsc_saturation"); config->ntsc_setup.sharpness = get_slider ("ntsc_sharpness"); - - return; } void @@ -815,8 +770,6 @@ Snes9xPreferences::move_settings_to_dialog () set_check ("cpu_overclock", Settings.OneClockCycle != 6); set_check ("remove_sprite_limit", Settings.MaxSpriteTilesPerLine != 34); #endif - - return; } void @@ -1032,8 +985,6 @@ Snes9xPreferences::get_settings_from_dialog () if (config->default_esc_behavior != ESC_TOGGLE_MENUBAR) top_level->leave_fullscreen_mode (); - - return; } int @@ -1098,8 +1049,6 @@ Snes9xPreferences::browse_folder_dialog () } gtk_widget_destroy (dialog); - - return; } void @@ -1248,8 +1197,6 @@ Snes9xPreferences::show () #endif gtk_widget_destroy (window); - - return; } void @@ -1267,8 +1214,6 @@ Snes9xPreferences::focus_next () gtk_widget_grab_focus (get_widget (b_links [next].button_name)); else gtk_widget_grab_focus (get_widget ("cancel_button")); - - return; } void @@ -1283,8 +1228,6 @@ Snes9xPreferences::swap_with () pad[dest_joypad] = mediator; bindings_to_dialog (source_joypad); - - return; } void @@ -1298,8 +1241,6 @@ Snes9xPreferences::reset_current_joypad () } bindings_to_dialog (joypad); - - return; } void @@ -1341,8 +1282,6 @@ Snes9xPreferences::store_binding (const char *string, Binding binding) focus_next (); bindings_to_dialog (get_combo ("control_combo")); - - return; } int @@ -1376,6 +1315,4 @@ Snes9xPreferences::bindings_to_dialog (int joypad) shortcut[i - NUM_JOYPAD_LINKS].to_string (name); set_entry_text (b_links[i].button_name, name); } - - return; } diff --git a/gtk/src/gtk_s9xwindow.cpp b/gtk/src/gtk_s9xwindow.cpp index 1cabda47..696048d0 100644 --- a/gtk/src/gtk_s9xwindow.cpp +++ b/gtk/src/gtk_s9xwindow.cpp @@ -316,8 +316,6 @@ event_fullscreen (GtkWidget *widget, gpointer data) window->enter_fullscreen_mode (); else window->leave_fullscreen_mode (); - - return; } @@ -325,40 +323,30 @@ static void event_exact_pixels_1x (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->resize_to_multiple (1); - - return; } static void event_exact_pixels_2x (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->resize_to_multiple (2); - - return; } static void event_exact_pixels_3x (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->resize_to_multiple (3); - - return; } static void event_exact_pixels_4x (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->resize_to_multiple (4); - - return; } static void event_exact_pixels_5x (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->resize_to_multiple (5); - - return; } static void @@ -372,7 +360,6 @@ event_record_movie (GtkWidget *widget, gpointer data) MOVIE_OPT_FROM_RESET, NULL, 0); - return; } static void @@ -382,8 +369,6 @@ event_open_movie (GtkWidget *widget, gpointer data) S9xMovieStop (FALSE); S9xMovieOpen (S9xChooseMovieFilename (TRUE), FALSE); - - return; } static void @@ -394,7 +379,6 @@ event_shader_parameters (GtkWidget *widget, gpointer data) gtk_shader_parameters_dialog (window->get_window ()); #endif - return; } static void @@ -402,8 +386,6 @@ event_stop_recording (GtkWidget *widget, gpointer data) { if (S9xMovieActive ()) S9xMovieStop (FALSE); - - return; } static void @@ -412,24 +394,18 @@ event_jump_to_frame (GtkWidget *widget, gpointer data) Snes9xWindow *window = (Snes9xWindow *) data; window->movie_seek_dialog (); - - return; } static void event_reset (GtkWidget *widget, gpointer data) { S9xSoftReset (); - - return; } static void event_hard_reset (GtkWidget *widget, gpointer data) { S9xReset (); - - return; } static void @@ -441,16 +417,12 @@ event_save_state (GtkWidget *widget, gpointer data) slot = atoi (&(name[11])); S9xQuickSaveSlot (slot); - - return; } static void event_save_state_file (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->save_state_dialog (); - - return; } static void @@ -462,16 +434,12 @@ event_load_state (GtkWidget *widget, gpointer data) slot = atoi (&(name[11])); S9xQuickLoadSlot (slot); - - return; } static void event_load_state_undo (GtkWidget *widget, gpointer data) { S9xUnfreezeGame (S9xGetFilename (".undo", SNAPSHOT_DIR)); - - return; } @@ -479,16 +447,12 @@ static void event_load_state_file (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->load_state_dialog (); - - return; } static void event_open_rom (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->open_rom_dialog (); - - return; } static void @@ -502,16 +466,12 @@ event_recent_open (GtkRecentChooser *chooser, gpointer data) g_free (filename); g_free (uri); - - return; } static void event_save_spc (GtkWidget *widget, gpointer data) { ((Snes9xWindow *) data)->save_spc_dialog (); - - return; } static gboolean @@ -577,8 +537,6 @@ event_port (GtkWidget *widget, gpointer data) { S9xSetController (1, CTL_MP5, 1, 2, 3, 4); } - - return; } Snes9xWindow::Snes9xWindow (Snes9xConfig *config) : @@ -720,8 +678,6 @@ Snes9xWindow::Snes9xWindow (Snes9xConfig *config) : gdk_window_set_cursor (gtk_widget_get_window (window), default_cursor); resize (config->window_width, config->window_height); - - return; } extern const gtk_splash_t gtk_splash; @@ -790,8 +746,6 @@ Snes9xWindow::expose () S9xRealDeinitUpdate (last_width, last_height); } #endif - - return; } void @@ -811,8 +765,6 @@ Snes9xWindow::focus_notify (int state) unpause_from_focus_change (); paused_from_focus_loss = FALSE; } - - return; } void @@ -873,8 +825,6 @@ Snes9xWindow::open_multicart_dialog () delete dialog; unpause_from_focus_change (); - - return; } const char * @@ -979,8 +929,6 @@ Snes9xWindow::open_rom_dialog () } unpause_from_focus_change (); - - return; } int @@ -1109,8 +1057,6 @@ Snes9xWindow::load_state_dialog () gtk_widget_destroy (dialog); this->unpause_from_focus_change (); - - return; } void @@ -1156,8 +1102,6 @@ Snes9xWindow::movie_seek_dialog () delete seek_dialog; unpause_from_focus_change (); - - return; } void @@ -1234,8 +1178,6 @@ Snes9xWindow::save_state_dialog () gtk_widget_destroy (dialog); this->unpause_from_focus_change (); - - return; } void @@ -1318,8 +1260,6 @@ Snes9xWindow::save_spc_dialog () gtk_widget_destroy (dialog); this->unpause_from_focus_change (); - - return; } void @@ -1330,8 +1270,6 @@ Snes9xWindow::set_menu_item_selected (const char *name) item = GTK_CHECK_MENU_ITEM (get_widget (name)); gtk_check_menu_item_set_active (item, 1); - - return; } static gboolean @@ -1353,8 +1291,6 @@ Snes9xWindow::show_status_message (const char *message) gtk_statusbar_push (statusbar, gtk_statusbar_get_context_id (statusbar, "info"), message); g_timeout_add (2000, statusbar_timeout, statusbar); - - return; } void @@ -1411,8 +1347,6 @@ Snes9xWindow::update_statusbar () gtk_window_set_title (GTK_WINDOW (window), title_string); gtk_statusbar_pop (bar, gtk_statusbar_get_context_id (bar, "none")); gtk_statusbar_push (bar, gtk_statusbar_get_context_id (bar, "none"), status_string); - - return; } void @@ -1473,8 +1407,6 @@ Snes9xWindow::show_rom_info () unpause_from_focus_change (); gtk_widget_destroy (msg); - - return; } void @@ -1552,8 +1484,6 @@ Snes9xWindow::configure_widgets () hide_mouse_cursor (); else show_mouse_cursor (); - - return; } void @@ -1563,8 +1493,6 @@ Snes9xWindow::set_mouseable_area (int x, int y, int width, int height) mouse_region_y = y; mouse_region_width = width; mouse_region_height = height; - - return; } void @@ -1587,8 +1515,6 @@ Snes9xWindow::reset_screensaver () #endif config->screensaver_needs_reset = FALSE; - - return; } void @@ -1774,8 +1700,6 @@ Snes9xWindow::enter_fullscreen_mode () config->ui_visible = FALSE; configure_widgets (); - - return; } void @@ -1834,8 +1758,6 @@ Snes9xWindow::leave_fullscreen_mode () config->fullscreen = 0; configure_widgets (); - - return; } void @@ -1863,8 +1785,6 @@ Snes9xWindow::toggle_statusbar () height += gtk_widget_get_visible (item) ? allocation.height : 0; resize (width, height); - - return; } void @@ -1883,8 +1803,6 @@ Snes9xWindow::resize_viewport (int width, int height) y_padding += gtk_widget_get_visible (item) ? allocation.height : 0; resize (width, height + y_padding); - - return; } void @@ -1898,8 +1816,6 @@ Snes9xWindow::hide_mouse_cursor () gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (drawing_area)), empty_cursor); config->pointer_is_visible = FALSE; - - return; } void @@ -1908,8 +1824,6 @@ Snes9xWindow::show_mouse_cursor () gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (drawing_area)), NULL); config->pointer_is_visible = TRUE; - - return; } void @@ -1943,8 +1857,6 @@ Snes9xWindow::show () gtk_widget_show (recent_menu); } - - return; } void @@ -1974,8 +1886,6 @@ Snes9xWindow::propagate_pause_state () configure_widgets (); update_statusbar (); } - - return; } void @@ -1984,8 +1894,6 @@ Snes9xWindow::toggle_ui () config->ui_visible = !config->ui_visible; configure_widgets (); - - return; } /* gui_[un]pause Handles when system needs to pause the emulator */ @@ -1995,8 +1903,6 @@ Snes9xWindow::pause_from_focus_change () sys_pause += config->modal_dialogs; propagate_pause_state (); - - return; } void @@ -2005,8 +1911,6 @@ Snes9xWindow::unpause_from_focus_change () if (--sys_pause < 0) sys_pause = 0; propagate_pause_state (); - - return; } /* client_[un]pause Handles when user manually chooses to pause */ @@ -2015,8 +1919,6 @@ Snes9xWindow::pause_from_user () { user_pause = TRUE; propagate_pause_state (); - - return; } void @@ -2024,8 +1926,6 @@ Snes9xWindow::unpause_from_user () { user_pause = FALSE; propagate_pause_state (); - - return; } unsigned char @@ -2092,8 +1992,6 @@ Snes9xWindow::set_menu_item_accel_to_binding (const char *name, bin.get_gdk_modifiers (), TRUE); } - - return; } void @@ -2134,8 +2032,6 @@ Snes9xWindow::update_accels () /* Special UI assignment */ set_menu_item_accel_to_binding ("hide_ui", "Escape Key"); - - return; } void @@ -2145,8 +2041,6 @@ Snes9xWindow::resize_to_multiple (int factor) int w = h * S9xGetAspect () + 0.5; resize_viewport (w, h); - - return; } cairo_t * diff --git a/gtk/src/gtk_sound.cpp b/gtk/src/gtk_sound.cpp index 5c0d7248..157155eb 100644 --- a/gtk/src/gtk_sound.cpp +++ b/gtk/src/gtk_sound.cpp @@ -151,8 +151,6 @@ S9xPortSoundInit () { S9xSetSoundMute (gui_config->mute_sound); } - - return; } void @@ -174,24 +172,18 @@ S9xPortSoundDeinit () driver->terminate (); delete driver; - - return; } void S9xSoundStart () { driver->start (); - - return; } void S9xSoundStop () { driver->stop (); - - return; } bool8 @@ -217,6 +209,4 @@ S9xToggleSoundChannel (int c) sound_switch ^= 1 << c; S9xSetSoundControl (sound_switch); - - return; } diff --git a/gtk/src/gtk_sound_driver_alsa.cpp b/gtk/src/gtk_sound_driver_alsa.cpp index 2aa5b014..2eccd1e9 100644 --- a/gtk/src/gtk_sound_driver_alsa.cpp +++ b/gtk/src/gtk_sound_driver_alsa.cpp @@ -16,14 +16,11 @@ S9xAlsaSoundDriver::S9xAlsaSoundDriver () pcm = NULL; sound_buffer = NULL; sound_buffer_size = 0; - - return; } void S9xAlsaSoundDriver::init () { - return; } void @@ -45,20 +42,16 @@ S9xAlsaSoundDriver::terminate () free (sound_buffer); sound_buffer = NULL; } - - return; } void S9xAlsaSoundDriver::start () { - return; } void S9xAlsaSoundDriver::stop () { - return; } bool8 @@ -241,6 +234,4 @@ S9xAlsaSoundDriver::samples_available () frames_written += result; } } - - return; } diff --git a/gtk/src/gtk_sound_driver_oss.cpp b/gtk/src/gtk_sound_driver_oss.cpp index d7bb6993..79a60ba8 100644 --- a/gtk/src/gtk_sound_driver_oss.cpp +++ b/gtk/src/gtk_sound_driver_oss.cpp @@ -17,14 +17,11 @@ S9xOSSSoundDriver::S9xOSSSoundDriver () filedes = -1; sound_buffer = NULL; sound_buffer_size = 0; - - return; } void S9xOSSSoundDriver::init () { - return; } void @@ -44,20 +41,16 @@ S9xOSSSoundDriver::terminate () free (sound_buffer); sound_buffer = NULL; } - - return; } void S9xOSSSoundDriver::start () { - return; } void S9xOSSSoundDriver::stop () { - return; } bool8 @@ -227,6 +220,4 @@ S9xOSSSoundDriver::samples_available () bytes_written += result; } - - return; } diff --git a/gtk/src/gtk_sound_driver_portaudio.cpp b/gtk/src/gtk_sound_driver_portaudio.cpp index 31acc009..99060d4d 100644 --- a/gtk/src/gtk_sound_driver_portaudio.cpp +++ b/gtk/src/gtk_sound_driver_portaudio.cpp @@ -11,8 +11,6 @@ static void port_audio_samples_available_callback (void *data) { ((S9xPortAudioSoundDriver *) data)->samples_available (); - - return; } S9xPortAudioSoundDriver::S9xPortAudioSoundDriver() @@ -20,8 +18,6 @@ S9xPortAudioSoundDriver::S9xPortAudioSoundDriver() audio_stream = NULL; sound_buffer = NULL; sound_buffer_size = 0; - - return; } void @@ -35,8 +31,6 @@ S9xPortAudioSoundDriver::init () fprintf (stderr, "Couldn't initialize PortAudio: %s\n", Pa_GetErrorText (err)); - - return; } void @@ -53,8 +47,6 @@ S9xPortAudioSoundDriver::terminate () free (sound_buffer); sound_buffer = NULL; } - - return; } void @@ -74,8 +66,6 @@ S9xPortAudioSoundDriver::start () fprintf (stderr, "Error: %s\n", Pa_GetErrorText (err)); } } - - return; } void @@ -85,8 +75,6 @@ S9xPortAudioSoundDriver::stop () { Pa_StopStream (audio_stream); } - - return; } bool8 @@ -226,6 +214,4 @@ S9xPortAudioSoundDriver::samples_available () S9xMixSamples (sound_buffer, frames << (Settings.Stereo ? 1 : 0)); Pa_WriteStream (audio_stream, sound_buffer, frames); - - return; } diff --git a/gtk/src/gtk_sound_driver_pulse.cpp b/gtk/src/gtk_sound_driver_pulse.cpp index 43c639e9..9b1fc3ba 100644 --- a/gtk/src/gtk_sound_driver_pulse.cpp +++ b/gtk/src/gtk_sound_driver_pulse.cpp @@ -17,14 +17,11 @@ S9xPulseSoundDriver::S9xPulseSoundDriver () context = NULL; stream = NULL; buffer_size = 0; - - return; } void S9xPulseSoundDriver::init () { - return; } void @@ -51,44 +48,34 @@ S9xPulseSoundDriver::terminate () { pa_threaded_mainloop_free (mainloop); } - - return; } void S9xPulseSoundDriver::start () { - return; } void S9xPulseSoundDriver::stop () { - return; } void S9xPulseSoundDriver::lock () { pa_threaded_mainloop_lock (mainloop); - - return; } void S9xPulseSoundDriver::unlock () { pa_threaded_mainloop_unlock (mainloop); - - return; } void S9xPulseSoundDriver::wait () { pa_threaded_mainloop_wait (mainloop); - - return; } static void @@ -105,8 +92,6 @@ context_state_cb (pa_context *c, void *userdata) { pa_threaded_mainloop_signal (driver->mainloop, 0); } - - return; } static void @@ -123,8 +108,6 @@ stream_state_callback (pa_stream *p, void *userdata) { pa_threaded_mainloop_signal (driver->mainloop, 0); } - - return; } bool8 @@ -285,6 +268,4 @@ S9xPulseSoundDriver::samples_available () pa_stream_write (stream, output_buffer, bytes, NULL, 0, PA_SEEK_RELATIVE); unlock (); - - return; } diff --git a/gtk/src/gtk_sound_driver_sdl.cpp b/gtk/src/gtk_sound_driver_sdl.cpp index 192639c1..46cf8ca6 100644 --- a/gtk/src/gtk_sound_driver_sdl.cpp +++ b/gtk/src/gtk_sound_driver_sdl.cpp @@ -5,8 +5,6 @@ static void sdl_audio_callback (void *userdata, Uint8 *stream, int len) { ((S9xSDLSoundDriver *) userdata)->mix ((unsigned char *) stream, len); - - return; } static void @@ -15,8 +13,6 @@ samples_available (void *data) SDL_LockAudio (); S9xFinalizeSamples (); SDL_UnlockAudio (); - - return; } void @@ -25,15 +21,11 @@ S9xSDLSoundDriver::mix (unsigned char *output, int bytes) SDL_LockAudio (); S9xMixSamples (output, bytes >> (Settings.SixteenBitSound ? 1 : 0)); SDL_UnlockAudio (); - - return; } S9xSDLSoundDriver::S9xSDLSoundDriver () { audiospec = NULL; - - return; } void @@ -41,8 +33,6 @@ S9xSDLSoundDriver::init () { SDL_InitSubSystem (SDL_INIT_AUDIO); stop (); - - return; } void @@ -58,8 +48,6 @@ S9xSDLSoundDriver::terminate () } SDL_QuitSubSystem (SDL_INIT_AUDIO); - - return; } void @@ -72,8 +60,6 @@ S9xSDLSoundDriver::start () SDL_PauseAudio (0); } } - - return; } void @@ -83,8 +69,6 @@ S9xSDLSoundDriver::stop () { SDL_PauseAudio (1); } - - return; } bool8