Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1474)

Unified Diff: third_party/bson_c/src/encoding.h

Issue 294683003: Since we're only using it on Linux now, just require poppler as a system dependency. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: set -e Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/bson_c/src/bson.c ('k') | third_party/bson_c/src/encoding.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/bson_c/src/encoding.h
diff --git a/third_party/bson_c/src/encoding.h b/third_party/bson_c/src/encoding.h
deleted file mode 100644
index 86d5e8ea9aef4c9867167aeb59712c11844f24bd..0000000000000000000000000000000000000000
--- a/third_party/bson_c/src/encoding.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2009-2011 10gen, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef BSON_ENCODING_H_
-#define BSON_ENCODING_H_
-
-MONGO_EXTERN_C_START
-
-/**
- * Check that a field name is valid UTF8, does not start with a '$',
- * and contains no '.' characters. Set bson bit field appropriately.
- * Note that we don't need to check for '\0' because we're using
- * strlen(3), which stops at '\0'.
- *
- * @param b The bson object to which field name will be appended.
- * @param string The field name as char*.
- * @param length The length of the field name.
- *
- * @return BSON_OK if valid UTF8 and BSON_ERROR if not. All BSON strings must be
- * valid UTF8. This function will also check whether the string
- * contains '.' or starts with '$', since the validity of this depends on context.
- * Set the value of b->err appropriately.
- */
-int bson_check_field_name( bson *b, const char *string,
- const int length );
-
-/**
- * Check that a string is valid UTF8. Sets the buffer bit field appropriately.
- *
- * @param b The bson object to which string will be appended.
- * @param string The string to check.
- * @param length The length of the string.
- *
- * @return BSON_OK if valid UTF-8; otherwise, BSON_ERROR.
- * Sets b->err on error.
- */
-bson_bool_t bson_check_string( bson *b, const char *string,
- const int length );
-
-MONGO_EXTERN_C_END
-#endif
« no previous file with comments | « third_party/bson_c/src/bson.c ('k') | third_party/bson_c/src/encoding.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698