After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323822 - Possible cleanups for yelp
Possible cleanups for yelp
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-11 21:04 UTC by Kjartan Maraas
Modified: 2009-09-22 01:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
possbile cleanups (14.47 KB, patch)
2005-12-11 21:05 UTC, Kjartan Maraas
committed Details | Review

Description Kjartan Maraas 2005-12-11 21:04:07 UTC
Remove some unused bits and mark a bunch of functions and variables as static
Comment 1 Kjartan Maraas 2005-12-11 21:05:33 UTC
Created attachment 55871 [details] [review]
possbile cleanups
Comment 2 Don Scorgie 2005-12-11 21:41:50 UTC
They all seem reasonable to me.  A couple of notes though:
1. yelp-cache: this is initialised in yelp-base once and then forgotten.  Can
this be remove from the compile?
2. The stuff in yelp-io-channel will result in a compile time warning:
yelp-io-channel.c:62: warning: initialization from incompatible pointer type
as this is used to replace a g_io_channel function that expects gsize instead of
gssize.  Maybe just remove the < 0 check
3. yelp-main.c: /* Already declared as CORBA_Object above? */ - It is.  The
variable redeclaration can be removed and it still works.  The extra compile
time warning can be removed by casting:
-   factory = bonobo_generic_factory_new
+   factory = (CORBA_Object) bonobo_generic_factory_new

4. yelp-window.c: You missed a stray }; at the end of window_copy_link_cb (Just
above the 2 that you have changed)
Comment 3 Don Scorgie 2006-01-08 20:58:45 UTC
I've committed most of the changes since they are all pretty trivial.

The io_channel stuff I created a new local variable, read into that and used that as the basis for finding the return value.

Closing:

2006-01-08  Don Scorgie  <dscorgie@cvs.gnome.org>

	* src/yelp-io-channel.c: 
	* src/yelp-xslt-pager.c: 
	* src/yelp-window.c: 
	* src/yelp-utils.c: 
	* src/yelp-toc-pager.c: 
	* src/yelp-settings.c: 
	* src/yelp-main.c: 
	* src/yelp-db-pager.c: 
	* src/yelp-bookmarks.c: 
	* src/yelp-base.c: 
	Various bits of cleanup from Kjartan Maraas (bug #323822)