summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-03 04:36:50 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-03 04:36:50 +0000
commite6caf7a0e167ed59c6c8b17d5c3eda4165934c43 (patch)
tree52671ddc3d93c779acc7050c9fb422f3739f7d82 /includes
parentae8821cfaece1d8dc43d79f47eb061dae5774b65 (diff)
downloadbrdo-e6caf7a0e167ed59c6c8b17d5c3eda4165934c43.tar.gz
brdo-e6caf7a0e167ed59c6c8b17d5c3eda4165934c43.tar.bz2
- Patch #508756 by catch, crell et al: rest in peace db_placeholders().
Diffstat (limited to 'includes')
-rw-r--r--includes/database/database.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc
index 45f4d748c..7ac323a37 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -2022,23 +2022,6 @@ function update_sql($sql) {
}
/**
- * Generate placeholders for an array of query arguments of a single type.
- *
- * Given a Schema API field type, return correct %-placeholders to
- * embed in a query
- *
- * @todo This may be possible to remove in favor of db_select().
- * @param $arguments
- * An array with at least one element.
- * @param $type
- * The Schema API type of a field (e.g. 'int', 'text', or 'varchar').
- */
-function db_placeholders($arguments, $type = 'int') {
- $placeholder = db_type_placeholder($type);
- return implode(',', array_fill(0, count($arguments), $placeholder));
-}
-
-/**
* Wraps the given table.field entry with a DISTINCT(). The wrapper is added to
* the SELECT list entry of the given query and the resulting query is returned.
* This function only applies the wrapper if a DISTINCT doesn't already exist in