Cleanup GTM API: make functions static, remove dead code
authorTomas Vondra <tomas@2ndquadrant.com>
Sat, 4 Nov 2017 15:46:56 +0000 (16:46 +0100)
committerTomas Vondra <tomas@2ndquadrant.com>
Sat, 4 Nov 2017 15:46:56 +0000 (16:46 +0100)
commiteef3e0b0511bcd543977d2c3e0994b3d302f3fd0
treec13bfb778d522b68f144e5cbf64847c42935789e
parent4ef4952534127818dcc92a801c18d1c08644c477
Cleanup GTM API: make functions static, remove dead code

The cleanup does two basic things:

* Functions used only in a single source file are made static (and also
  removed from the header file, of course). This reduces the size of the
  public GTM API.

* Unused functions (identified by the compiler thanks to making other
  functions static in the previous step) are removed. The assumption is
  that this code was not really tested at all, and would only make
  future improvements harder.
21 files changed:
src/gtm/client/gtm_client.c
src/gtm/common/gtm_lock.c
src/gtm/common/gtm_serialize.c
src/gtm/common/gtm_utils.c
src/gtm/main/gtm_seq.c
src/gtm/main/gtm_snap.c
src/gtm/main/gtm_standby.c
src/gtm/main/gtm_thread.c
src/gtm/main/gtm_txn.c
src/gtm/recovery/register_common.c
src/include/gtm/gtm.h
src/include/gtm/gtm_backup.h
src/include/gtm/gtm_client.h
src/include/gtm/gtm_gxid.h
src/include/gtm/gtm_lock.h
src/include/gtm/gtm_seq.h
src/include/gtm/gtm_serialize.h
src/include/gtm/gtm_standby.h
src/include/gtm/gtm_txn.h
src/include/gtm/gtm_utils.h
src/include/gtm/register.h