From e6caf7a0e167ed59c6c8b17d5c3eda4165934c43 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Jul 2009 04:36:50 +0000 Subject: - Patch #508756 by catch, crell et al: rest in peace db_placeholders(). --- includes/database/database.inc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'includes') 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 @@ -2021,23 +2021,6 @@ function update_sql($sql) { return array('success' => $result !== FALSE, 'query' => check_plain($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. -- cgit v1.2.3