summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-04-07 11:44:59 +0800
committerPo Lu <luangruo@yahoo.com>2022-04-07 11:44:59 +0800
commitc6ea0772ec1878d3d894e8b370f1272f88a97ea3 (patch)
tree88cb063c8e1641acbb77df93ec442852ec17776a
parent1f4a0828cc3fb93914d2ac12bb93013864730bd9 (diff)
downloademacs-c6ea0772ec1878d3d894e8b370f1272f88a97ea3.tar.gz
Remove more code mindlessly copied from NS
* src/pgtkfns.c (Fx_open_connection): * src/pgtkselect.c (nxatoms_of_pgtkselect): * src/pgtkselect.h: * src/pgtkterm.h: Delete `nxatoms_of_pgtkselect'.
-rw-r--r--src/pgtkfns.c1
-rw-r--r--src/pgtkselect.c6
-rw-r--r--src/pgtkselect.h4
-rw-r--r--src/pgtkterm.h3
4 files changed, 1 insertions, 13 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index b028296720b..e6ce5e2f443 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -2212,7 +2212,6 @@ terminate Emacs if we can't open the connection. */)
CHECK_STRING (display);
- nxatoms_of_pgtkselect ();
dpyinfo = pgtk_term_init (display, SSDATA (Vx_resource_name));
if (dpyinfo == 0)
{
diff --git a/src/pgtkselect.c b/src/pgtkselect.c
index 2f4a872a05b..4c87aaa7ea6 100644
--- a/src/pgtkselect.c
+++ b/src/pgtkselect.c
@@ -492,12 +492,6 @@ frame's display, or the first available display. */)
return Qnil;
}
-
-void
-nxatoms_of_pgtkselect (void)
-{
-}
-
void
syms_of_pgtkselect (void)
{
diff --git a/src/pgtkselect.h b/src/pgtkselect.h
index 0509c83bdec..fd9910b2d18 100644
--- a/src/pgtkselect.h
+++ b/src/pgtkselect.h
@@ -26,8 +26,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <gtk/gtk.h>
extern void pgtk_selection_init (void);
-extern void pgtk_selection_lost (GtkWidget * widget,
- GdkEventSelection * event,
- gpointer user_data);
+extern void pgtk_selection_lost (GtkWidget *, GdkEventSelection *, gpointer);
#endif /* HAVE_PGTK */
diff --git a/src/pgtkterm.h b/src/pgtkterm.h
index 8803b482cca..b1165752aba 100644
--- a/src/pgtkterm.h
+++ b/src/pgtkterm.h
@@ -611,9 +611,6 @@ extern void syms_of_pgtkmenu (void);
extern void syms_of_pgtkselect (void);
extern void syms_of_pgtkim (void);
-/* Implemented in pgtkselect. */
-extern void nxatoms_of_pgtkselect (void);
-
/* Initialization and marking implemented in pgtkterm.c */
extern void init_pgtkterm (void);
extern void mark_pgtkterm (void);