Skip to content

Commit 1f85b6b

Browse files
committed
Cleanup source tree
Change-Id: I2d914af9031bab6cc02f77e8d8e92245e6f5bf5d Reviewed-on: http://review.couchbase.org/121644 Tested-by: Build Bot <[email protected]> Reviewed-by: Sergey Avseyev <[email protected]>
1 parent 44a7d43 commit 1f85b6b

File tree

6 files changed

+0
-161
lines changed

6 files changed

+0
-161
lines changed

config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ COUCHBASE_FILES=" \
8484
src/couchbase/managers/query_index_manager.c \
8585
src/couchbase/mutate_spec.c \
8686
src/couchbase/mutation_state.c \
87-
src/couchbase/n1ql_index.c \
8887
src/couchbase/password_authenticator.c \
8988
src/couchbase/pool.c \
9089
src/couchbase/result.c \

config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if (PHP_COUCHBASE != "no") {
3131
"lookup_spec.c " +
3232
"mutate_spec.c " +
3333
"mutation_state.c " +
34-
"n1ql_index.c " +
3534
"pool.c " +
3635
"result.c " +
3736
"search_options.c ";

couchbase.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ PHP_MINIT_FUNCTION(CertAuthenticator);
197197
PHP_MINIT_FUNCTION(PasswordAuthenticator);
198198
PHP_MINIT_FUNCTION(MutationState);
199199
PHP_MINIT_FUNCTION(AnalyticsQuery);
200-
PHP_MINIT_FUNCTION(N1qlIndex);
201200
PHP_MINIT_FUNCTION(LookupInSpec);
202201
PHP_MINIT_FUNCTION(MutateInSpec);
203202
PHP_MINIT_FUNCTION(SearchOptions);
@@ -277,7 +276,6 @@ PHP_MINIT_FUNCTION(couchbase)
277276
PHP_MINIT(PasswordAuthenticator)(INIT_FUNC_ARGS_PASSTHRU);
278277
PHP_MINIT(MutationState)(INIT_FUNC_ARGS_PASSTHRU);
279278
PHP_MINIT(AnalyticsQuery)(INIT_FUNC_ARGS_PASSTHRU);
280-
PHP_MINIT(N1qlIndex)(INIT_FUNC_ARGS_PASSTHRU);
281279
PHP_MINIT(LookupInSpec)(INIT_FUNC_ARGS_PASSTHRU);
282280
PHP_MINIT(MutateInSpec)(INIT_FUNC_ARGS_PASSTHRU);
283281
PHP_MINIT(SearchOptions)(INIT_FUNC_ARGS_PASSTHRU);

couchbase.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,6 @@ ZEND_EXTERN_MODULE_GLOBALS(couchbase)
9191
#define PCBCG(v) (couchbase_globals.v)
9292
#endif
9393

94-
#if PHP_VERSION_ID < 70200
95-
96-
#define php_base64_decode_str(arg) php_base64_decode((const unsigned char *)ZSTR_VAL(arg), ZSTR_LEN(arg))
97-
98-
#undef ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO
99-
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(name, type, allow_null) \
100-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, 0, -1, type, NULL, allow_null)
101-
102-
#define zend_parse_parameters_none_throw zend_parse_parameters_none
103-
104-
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO(name, class_name, allow_null) \
105-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, 0, -1, IS_OBJECT, NULL, allow_null)
106-
107-
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, class_name, allow_null) \
108-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, IS_OBJECT, NULL, allow_null)
109-
#endif
110-
11194
#define PCBC_DATE_FORMAT_RFC3339 "Y-m-d\\TH:i:sP"
11295

11396
extern char *pcbc_client_string;
@@ -191,10 +174,6 @@ void pcbc_exception_init(zval *return_value, long code, const char *message TSRM
191174
#define PCBC_CONTENT_TYPE_FORM "application/x-www-form-urlencoded"
192175
#define PCBC_CONTENT_TYPE_JSON "application/json"
193176

194-
#define PCBC_ARRAY_MERGE(__pcbc_dest, __pcbc_src) php_array_merge((__pcbc_dest), (__pcbc_src)TSRMLS_CC)
195-
196-
#define ADD_NEXT_INDEX_STRING(zv, value) add_next_index_string(zv, value);
197-
198177
#define PCBC_ALLOC_OBJECT_T(obj_t, class_type) \
199178
(obj_t *)ecalloc(1, sizeof(obj_t) + zend_object_properties_size(class_type))
200179

@@ -292,11 +271,6 @@ typedef struct {
292271
zend_object std;
293272
} pcbc_bucket_t;
294273

295-
typedef struct {
296-
pcbc_connection_t *conn;
297-
zend_object std;
298-
} pcbc_query_index_manager_t;
299-
300274
typedef struct {
301275
void *next;
302276
lcb_STATUS err;
@@ -314,8 +288,6 @@ int pcbc_encode_value(pcbc_bucket_t *bucket, zval *value, void **bytes, lcb_size
314288
void pcbc_http_request(zval *return_value, lcb_INSTANCE *conn, lcb_CMDHTTP *cmd, int json_response, void *cbctx,
315289
void(httpcb)(void *, zval *, zval *), int(errorcb)(void *, zval *) TSRMLS_DC);
316290

317-
void pcbc_query_index_manager_init(zval *return_value, zval *cluster TSRMLS_DC);
318-
319291
void pcbc_mutation_state_export_for_n1ql(zval *obj, zval *scan_vectors TSRMLS_DC);
320292
void pcbc_mutation_state_export_for_search(zval *mutation_state, zval *scan_vectors TSRMLS_DC);
321293

package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
<file role="src" name="src/couchbase/managers/query_index_manager.c" />
101101
<file role="src" name="src/couchbase/mutate_spec.c" />
102102
<file role="src" name="src/couchbase/mutation_state.c" />
103-
<file role="src" name="src/couchbase/n1ql_index.c" />
104103
<file role="src" name="src/couchbase/password_authenticator.c" />
105104
<file role="src" name="src/couchbase/pool.c" />
106105
<file role="src" name="src/couchbase/result.c" />

src/couchbase/n1ql_index.c

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)